<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Ananas Library: Класс aDataTable</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Создано системой Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Титульная&nbsp;страница</span></a></li>
      <li class="current"><a href="annotated.html"><span>Классы</span></a></li>
      <li><a href="files.html"><span>Файлы</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Классы</span></a></li>
      <li><a href="hierarchy.html"><span>Иерархия&nbsp;классов</span></a></li>
      <li><a href="functions.html"><span>Члены&nbsp;классов</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Класс aDataTable</h1><!-- doxytag: class="aDataTable" -->Определяет программный интерфейс модели данных <a class="el" href="classaDataTable.html" title="Определяет программный интерфейс модели данных...">aDataTable</a>. Наследует QSqlCursor.  
<a href="#_details">Подробнее...</a>
<p>
<code>#include &lt;<a class="el" href="asqltable_8h-source.html">asqltable.h</a>&gt;</code>
<p>

<p>
<a href="classaDataTable-members.html">Полный список членов класса</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Открытые члены</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0071e8d3ef338a7128d5f5aba61bd2ab"></a><!-- doxytag: member="aDataTable::aSQLTable" ref="0071e8d3ef338a7128d5f5aba61bd2ab" args="(aCfgItem context, aDatabase *adb)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>aSQLTable</b> (aCfgItem context, <a class="el" href="classaDatabase.html">aDatabase</a> *adb)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2d0523592a3b28a2b6c9cc11d9d69c72"></a><!-- doxytag: member="aDataTable::aSQLTable" ref="2d0523592a3b28a2b6c9cc11d9d69c72" args="(const QString &amp;tname, aDatabase *adb)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>aSQLTable</b> (const QString &amp;tname, <a class="el" href="classaDatabase.html">aDatabase</a> *adb)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataTable.html#fb631255f7d9ba4a80f9cc5194e80fe0">init</a> (aCfgItem context, <a class="el" href="classaDatabase.html">aDatabase</a> *adb)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataTable.html#68c7ef7662ea9cb4742608542cf4bc36">setObject</a> (aCfgItem context)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataTable.html#f35a303a90af02d5e8f6bfa13279d729">appendField</a> (aSQLField *fieldinfo)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataTable.html#7961b0b4ac323995dd2b65a38dc2e24c">insertField</a> (int pos, aSQLField *fieldinfo)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataTable.html#df8429fa73717812da8a745ecc98dffe">removeField</a> (int pos)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataTable.html#ef0ccd26868b844774edb817d258dc1f">clearFields</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataTable.html#9f03ea0845625fce23ab5171051d8338">checkStructure</a> (bool update)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cc198587c27e1f269a6fd21e43bb8bcd"></a><!-- doxytag: member="aDataTable::getMdObjId" ref="cc198587c27e1f269a6fd21e43bb8bcd" args="()" -->
long&nbsp;</td><td class="memItemRight" valign="bottom"><b>getMdObjId</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">Q_ULLONG&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataTable.html#7ce0b0501974ecd2969739965a2e21a1">getIdd</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bb7297f8c89ea180cb608b0ee7f813d4"></a><!-- doxytag: member="aDataTable::printRecord" ref="bb7297f8c89ea180cb608b0ee7f813d4" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>printRecord</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QVariant&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataTable.html#2be944ac0ad1642325afcf5ee93180b5">value</a> (int i)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QVariant&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataTable.html#02a46909b41c27112ef4e816f2fff166">value</a> (const QString &amp;name)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataTable.html#d1fa41dee649f6c0d6071174aa5b6580">setValue</a> (int i, QVariant value)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="97dbe4d85cf5099e7302f344f2599782"></a><!-- doxytag: member="aDataTable::setValue" ref="97dbe4d85cf5099e7302f344f2599782" args="(const QString &amp;name, QVariant value)" -->
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>setValue</b> (const QString &amp;name, QVariant value)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QVariant&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataTable.html#f55fadc83b1617d92e4e8aaaf9533b18">sysValue</a> (const QString &amp;name)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ae2266fac6a639f12224fac0d352e949"></a><!-- doxytag: member="aDataTable::setSysValue" ref="ae2266fac6a639f12224fac0d352e949" args="(const QString &amp;name, QVariant value)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setSysValue</b> (const QString &amp;name, QVariant value)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataTable.html#6ed41a317abea3ea97ca64454a05b870">sysFieldExists</a> (const QString &amp;name)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="04a939eea35af676eabc8efe8c50d216"></a><!-- doxytag: member="aDataTable::primeInsert" ref="04a939eea35af676eabc8efe8c50d216" args="()" -->
virtual QSqlRecord *&nbsp;</td><td class="memItemRight" valign="bottom"><b>primeInsert</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2d56699dafb03e62ac748a3dae6a4136"></a><!-- doxytag: member="aDataTable::select" ref="2d56699dafb03e62ac748a3dae6a4136" args="(const QString &amp;filter=&quot;&quot;, bool usefltr=true)" -->
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>select</b> (const QString &amp;filter=&quot;&quot;, bool usefltr=true)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="31d0b3b39f681699ed981c3d6f78e9cf"></a><!-- doxytag: member="aDataTable::select" ref="31d0b3b39f681699ed981c3d6f78e9cf" args="(Q_ULLONG id)" -->
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>select</b> (Q_ULLONG id)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5b2095508902fd1338452c0d1be3d211"></a><!-- doxytag: member="aDataTable::clearFilter" ref="5b2095508902fd1338452c0d1be3d211" args="()" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>clearFilter</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4b19593c67d4515c02b5ef176b06f255"></a><!-- doxytag: member="aDataTable::setFilter" ref="4b19593c67d4515c02b5ef176b06f255" args="(const QString &amp;name, const QVariant &amp;value)" -->
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>setFilter</b> (const QString &amp;name, const QVariant &amp;value)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="872f0bfd6ba1f1c8a0750d5f070792c9"></a><!-- doxytag: member="aDataTable::setFilter" ref="872f0bfd6ba1f1c8a0750d5f070792c9" args="(const QString &amp;)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setFilter</b> (const QString &amp;)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2546ffc5bad4e747ad64b99b9aed8351"></a><!-- doxytag: member="aDataTable::getFilter" ref="2546ffc5bad4e747ad64b99b9aed8351" args="()" -->
virtual QString&nbsp;</td><td class="memItemRight" valign="bottom"><b>getFilter</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="70bdb3630e19a650f4821b2ffb2b798b"></a><!-- doxytag: member="aDataTable::getNFilter" ref="70bdb3630e19a650f4821b2ffb2b798b" args="()" -->
virtual QString&nbsp;</td><td class="memItemRight" valign="bottom"><b>getNFilter</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d5bd94e9ffd174826369590c461269ea"></a><!-- doxytag: member="aDataTable::exec" ref="d5bd94e9ffd174826369590c461269ea" args="(QString query)" -->
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>exec</b> (QString query)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QStringList&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataTable.html#3c491a2aeef8b0990457de57f8014595">getUserFields</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="92b93ddb210a5d38ade27eaa5cf0ec90"></a><!-- doxytag: member="aDataTable::setMarkDeleted" ref="92b93ddb210a5d38ade27eaa5cf0ec90" args="(bool Deleted)" -->
virtual ERR_Code&nbsp;</td><td class="memItemRight" valign="bottom"><b>setMarkDeleted</b> (bool Deleted)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ac32cc75c0fb97c718b7a13cacc64c41"></a><!-- doxytag: member="aDataTable::isMarkDeleted" ref="ac32cc75c0fb97c718b7a13cacc64c41" args="()" -->
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>isMarkDeleted</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d926b005149bfb7ce20fd2a9f3627ee4"></a><!-- doxytag: member="aDataTable::sqlFieldName" ref="d926b005149bfb7ce20fd2a9f3627ee4" args="(const QString &amp;userFieldName) const " -->
QString&nbsp;</td><td class="memItemRight" valign="bottom"><b>sqlFieldName</b> (const QString &amp;userFieldName) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c3f984fb8a37a7c6615aad0f99e90502"></a><!-- doxytag: member="aDataTable::New" ref="c3f984fb8a37a7c6615aad0f99e90502" args="()" -->
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>New</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3b8d4902dab8859eaf148a4d06336296"></a><!-- doxytag: member="aDataTable::Copy" ref="3b8d4902dab8859eaf148a4d06336296" args="()" -->
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataTable.html#3b8d4902dab8859eaf148a4d06336296">Copy</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Создает новую запись, являющуюся клоном текущей записи. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e2fa660c1dd5fe7111e323c945487b63"></a><!-- doxytag: member="aDataTable::Delete" ref="e2fa660c1dd5fe7111e323c945487b63" args="()" -->
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>Delete</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="253f7b357e4cfbd650b3c61202998aca"></a><!-- doxytag: member="aDataTable::Update" ref="253f7b357e4cfbd650b3c61202998aca" args="()" -->
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>Update</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="514c653a73f7f19833fb3b1b7bc931b2"></a><!-- doxytag: member="aDataTable::seek" ref="514c653a73f7f19833fb3b1b7bc931b2" args="(int i, bool relative=FALSE)" -->
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>seek</b> (int i, bool relative=FALSE)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6ac9691f850aa68b80c3fbc55bc6e31a"></a><!-- doxytag: member="aDataTable::next" ref="6ac9691f850aa68b80c3fbc55bc6e31a" args="()" -->
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>next</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="19073287b863f73105fe9cc4d5b337b6"></a><!-- doxytag: member="aDataTable::prev" ref="19073287b863f73105fe9cc4d5b337b6" args="()" -->
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>prev</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="87feac7a7b933885d75f5b2f0c6c337c"></a><!-- doxytag: member="aDataTable::first" ref="87feac7a7b933885d75f5b2f0c6c337c" args="()" -->
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>first</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="402c394737084af1b7c4fc43340784cc"></a><!-- doxytag: member="aDataTable::last" ref="402c394737084af1b7c4fc43340784cc" args="()" -->
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>last</b> ()</td></tr>

<tr><td colspan="2"><br><h2>Открытые атрибуты</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5163912ebe171a608f95889ca8bbc9ed"></a><!-- doxytag: member="aDataTable::db" ref="5163912ebe171a608f95889ca8bbc9ed" args="" -->
<a class="el" href="classaDatabase.html">aDatabase</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>db</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2acb9833bb0d0585f16a09ad0dfd6cfa"></a><!-- doxytag: member="aDataTable::tableName" ref="2acb9833bb0d0585f16a09ad0dfd6cfa" args="" -->
QString&nbsp;</td><td class="memItemRight" valign="bottom"><b>tableName</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="82330c2cc66ef0529beb13610654a8ca"></a><!-- doxytag: member="aDataTable::selected" ref="82330c2cc66ef0529beb13610654a8ca" args="" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>selected</b></td></tr>

<tr><td colspan="2"><br><h2>Защищенные члены</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QVariant&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataTable.html#6a8b8f5e5da7e71241ee9b88a148d96b">calcFieldValue</a> (const QString &amp;name)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QVariant&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataTable.html#ff1ae99985a6c5ced19688cdaf5826ea">calculateField</a> (const QString &amp;name)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="eea14264917a8b675d3e5bc1b43137d4"></a><!-- doxytag: member="aDataTable::calc_obj" ref="eea14264917a8b675d3e5bc1b43137d4" args="(int fid, Q_ULLONG idd)" -->
virtual QVariant&nbsp;</td><td class="memItemRight" valign="bottom"><b>calc_obj</b> (int fid, Q_ULLONG idd)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d2ecba0298606a663b7235cc9f0daf8a"></a><!-- doxytag: member="aDataTable::calc_rem" ref="d2ecba0298606a663b7235cc9f0daf8a" args="(int fid, Q_ULLONG id)" -->
virtual QVariant&nbsp;</td><td class="memItemRight" valign="bottom"><b>calc_rem</b> (int fid, Q_ULLONG id)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f2180053976ecb2c9ce594ade99e2b98"></a><!-- doxytag: member="aDataTable::insertFieldInfo" ref="f2180053976ecb2c9ce594ade99e2b98" args="(aCfgItem cobj, bool calculated=true)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>insertFieldInfo</b> (aCfgItem cobj, bool calculated=true)</td></tr>

<tr><td colspan="2"><br><h2>Защищенные данные</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d2d8d64887e61a5777700e3c6da5f8dc"></a><!-- doxytag: member="aDataTable::mdobjId" ref="d2d8d64887e61a5777700e3c6da5f8dc" args="" -->
long&nbsp;</td><td class="memItemRight" valign="bottom"><b>mdobjId</b></td></tr>

</table>
<hr><a name="_details"></a><h2>Подробное описание</h2>
Определяет программный интерфейс модели данных <a class="el" href="classaDataTable.html" title="Определяет программный интерфейс модели данных...">aDataTable</a>. Наследует QSqlCursor. 
<p>
Позволяет работать с табличными представлениями данных, определенных метаданными бизнес схемы. <hr><h2>Методы</h2>
<a class="anchor" name="fb631255f7d9ba4a80f9cc5194e80fe0"></a><!-- doxytag: member="aDataTable::init" ref="fb631255f7d9ba4a80f9cc5194e80fe0" args="(aCfgItem context, aDatabase *adb)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void aDataTable::init           </td>
          <td>(</td>
          <td class="paramtype">aCfgItem&nbsp;</td>
          <td class="paramname"> <em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classaDatabase.html">aDatabase</a> *&nbsp;</td>
          <td class="paramname"> <em>adb</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Инициализирует объект. <dl class="see" compact><dt><b>См. также:</b></dt><dd><a class="el" href="classaDataTable.html#68c7ef7662ea9cb4742608542cf4bc36">setObject()</a> </dd></dl>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>- объект метаданных, который описывает таблицу. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>adb</em>&nbsp;</td><td>- ссылка на объект базы данных, которой принадлежит sql таблица. </td></tr>
  </table>
</dl>

<p>Перекрестные ссылки <a class="el" href="asqltable_8cpp-source.html#l00152">setObject()</a>.</p>

</div>
</div><p>
<a class="anchor" name="68c7ef7662ea9cb4742608542cf4bc36"></a><!-- doxytag: member="aDataTable::setObject" ref="68c7ef7662ea9cb4742608542cf4bc36" args="(aCfgItem context)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void aDataTable::setObject           </td>
          <td>(</td>
          <td class="paramtype">aCfgItem&nbsp;</td>
          <td class="paramname"> <em>context</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Задает объект метаданных для таблицы. Заполняет внутренние объекты именами полей для последующего использования в функциях SetValue() и Value(), добавляет информацию о них в sql курсор. В случае, если добавляется накопительный регистр, к объетку добавляются также виртуальные поля - ресурсы регистра После вызова этой функции с таблицей можно начинать работу. <dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>- объект метаданных, который описывает таблицу. </td></tr>
  </table>
</dl>

<p>Перекрестные ссылки <a class="el" href="acfg_8cpp-source.html#l00471">aCfg::count()</a>, <a class="el" href="acfg_8cpp-source.html#l00520">aCfg::find()</a>, <a class="el" href="acfg_8cpp-source.html#l00669">aCfg::findChild()</a>, <a class="el" href="acfg_8cpp-source.html#l01220">aCfg::id()</a>, <a class="el" href="acfg_8cpp-source.html#l00937">aCfg::objClass()</a>, <a class="el" href="acfg_8cpp-source.html#l00752">aCfg::parent()</a> и <a class="el" href="alog_8cpp-source.html#l00058">aLog::print()</a>.</p>

<p>Используется в <a class="el" href="asqltable_8cpp-source.html#l00126">init()</a> и <a class="el" href="aobject_8cpp-source.html#l00240">aObject::tableInsert()</a>.</p>

</div>
</div><p>
<a class="anchor" name="f35a303a90af02d5e8f6bfa13279d729"></a><!-- doxytag: member="aDataTable::appendField" ref="f35a303a90af02d5e8f6bfa13279d729" args="(aSQLField *fieldinfo)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void aDataTable::appendField           </td>
          <td>(</td>
          <td class="paramtype">aSQLField *&nbsp;</td>
          <td class="paramname"> <em>fieldinfo</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Заглушка. 
</div>
</div><p>
<a class="anchor" name="7961b0b4ac323995dd2b65a38dc2e24c"></a><!-- doxytag: member="aDataTable::insertField" ref="7961b0b4ac323995dd2b65a38dc2e24c" args="(int pos, aSQLField *fieldinfo)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void aDataTable::insertField           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">aSQLField *&nbsp;</td>
          <td class="paramname"> <em>fieldinfo</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Заглушка. 
</div>
</div><p>
<a class="anchor" name="df8429fa73717812da8a745ecc98dffe"></a><!-- doxytag: member="aDataTable::removeField" ref="df8429fa73717812da8a745ecc98dffe" args="(int pos)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void aDataTable::removeField           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>pos</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Заглушка. 
</div>
</div><p>
<a class="anchor" name="ef0ccd26868b844774edb817d258dc1f"></a><!-- doxytag: member="aDataTable::clearFields" ref="ef0ccd26868b844774edb817d258dc1f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void aDataTable::clearFields           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Заглушка. 
</div>
</div><p>
<a class="anchor" name="9f03ea0845625fce23ab5171051d8338"></a><!-- doxytag: member="aDataTable::checkStructure" ref="9f03ea0845625fce23ab5171051d8338" args="(bool update)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool aDataTable::checkStructure           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>update</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Заглушка. 
</div>
</div><p>
<a class="anchor" name="7ce0b0501974ecd2969739965a2e21a1"></a><!-- doxytag: member="aDataTable::getIdd" ref="7ce0b0501974ecd2969739965a2e21a1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Q_ULLONG aDataTable::getIdd           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Получение объекта метаданных, которым инициализировали таблицу. <dl class="return" compact><dt><b>Возвращает:</b></dt><dd>объект метаданных, который описывает таблицу. </dd></dl>

</div>
</div><p>
<a class="anchor" name="2be944ac0ad1642325afcf5ee93180b5"></a><!-- doxytag: member="aDataTable::value" ref="2be944ac0ad1642325afcf5ee93180b5" args="(int i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QVariant aDataTable::value           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>i</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Возвращает значение поля с номером <em>i</em>. <dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>i</em>&nbsp;</td><td>- номер поля. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>значение поля </dd></dl>

<p>Перекрестные ссылки <a class="el" href="asqltable_8cpp-source.html#l00479">sysValue()</a>.</p>

<p>Используется в <a class="el" href="aobject_8cpp-source.html#l00746">aObject::tValue()</a> и <a class="el" href="aobject_8cpp-source.html#l00351">aObject::Value()</a>.</p>

</div>
</div><p>
<a class="anchor" name="02a46909b41c27112ef4e816f2fff166"></a><!-- doxytag: member="aDataTable::value" ref="02a46909b41c27112ef4e816f2fff166" args="(const QString &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QVariant aDataTable::value           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Возвращает значение поля с именем <em>name</em>. Для получения значения необходимо указывать имя поля в метаданных <dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>- имя поля в метаданных. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>значение поля или QVariant::Invalid, если поля не существует. </dd></dl>

<p>Перекрестные ссылки <a class="el" href="alog_8cpp-source.html#l00058">aLog::print()</a> и <a class="el" href="asqltable_8cpp-source.html#l00479">sysValue()</a>.</p>

</div>
</div><p>
<a class="anchor" name="d1fa41dee649f6c0d6071174aa5b6580"></a><!-- doxytag: member="aDataTable::setValue" ref="d1fa41dee649f6c0d6071174aa5b6580" args="(int i, QVariant value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void aDataTable::setValue           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QVariant&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set value of the column of the database table. 
<p>Используется в <a class="el" href="asqltable_8cpp-source.html#l01064">Copy()</a>, <a class="el" href="aobject_8cpp-source.html#l00760">aObject::setTValue()</a> и <a class="el" href="aobject_8cpp-source.html#l00371">aObject::SetValue()</a>.</p>

</div>
</div><p>
<a class="anchor" name="f55fadc83b1617d92e4e8aaaf9533b18"></a><!-- doxytag: member="aDataTable::sysValue" ref="f55fadc83b1617d92e4e8aaaf9533b18" args="(const QString &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QVariant aDataTable::sysValue           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return value of the column of the database table. 
<p>Перекрестные ссылки <a class="el" href="asqltable_8cpp-source.html#l00886">calcFieldValue()</a>.</p>

<p>Используется в <a class="el" href="asqltable_8cpp-source.html#l00886">calcFieldValue()</a>, <a class="el" href="adocjournal_8cpp-source.html#l00170">aDocJournal::docId()</a>, <a class="el" href="adocjournal_8cpp-source.html#l00564">aDocJournal::findDoc()</a>, <a class="el" href="airegister_8cpp-source.html#l00199">aIRegister::GetDocument()</a>, <a class="el" href="acatalogue_8cpp-source.html#l00632">aCatalogue::setMarkDeletedElement()</a>, <a class="el" href="aobject_8cpp-source.html#l00316">aObject::sysValue()</a>, <a class="el" href="adocument_8cpp-source.html#l00263">aDocument::TableValue()</a> и <a class="el" href="asqltable_8cpp-source.html#l00414">value()</a>.</p>

</div>
</div><p>
<a class="anchor" name="6ed41a317abea3ea97ca64454a05b870"></a><!-- doxytag: member="aDataTable::sysFieldExists" ref="6ed41a317abea3ea97ca64454a05b870" args="(const QString &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool aDataTable::sysFieldExists           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return true if column name exists in database table.<p>
Проверяет существование поля в таблице <dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>- имя поля в таблице (не в метаданных!). </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>true, если столбец с данным именем есть в таблице. </dd></dl>

<p>Используется в <a class="el" href="asqltable_8cpp-source.html#l00886">calcFieldValue()</a> и <a class="el" href="aobject_8cpp-source.html#l00316">aObject::sysValue()</a>.</p>

</div>
</div><p>
<a class="anchor" name="3c491a2aeef8b0990457de57f8014595"></a><!-- doxytag: member="aDataTable::getUserFields" ref="3c491a2aeef8b0990457de57f8014595" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QStringList aDataTable::getUserFields           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets list of user and calculation fields. 
</div>
</div><p>
<a class="anchor" name="6a8b8f5e5da7e71241ee9b88a148d96b"></a><!-- doxytag: member="aDataTable::calcFieldValue" ref="6a8b8f5e5da7e71241ee9b88a148d96b" args="(const QString &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QVariant aDataTable::calcFieldValue           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Calculate value object type fields. 
<p>Перекрестные ссылки <a class="el" href="asqltable_8cpp-source.html#l00468">sysFieldExists()</a> и <a class="el" href="asqltable_8cpp-source.html#l00479">sysValue()</a>.</p>

<p>Используется в <a class="el" href="asqltable_8cpp-source.html#l00479">sysValue()</a>.</p>

</div>
</div><p>
<a class="anchor" name="ff1ae99985a6c5ced19688cdaf5826ea"></a><!-- doxytag: member="aDataTable::calculateField" ref="ff1ae99985a6c5ced19688cdaf5826ea" args="(const QString &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QVariant aDataTable::calculateField           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Calculate value object type fields. 
</div>
</div><p>
<hr>Объявления и описания членов классов находятся в файлах:<ul>
<li><a class="el" href="asqltable_8h-source.html">asqltable.h</a><li>asqltable.cpp</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Документация по Ananas Library. Последние изменения: Sun Feb 1 21:47:15 2009. Создано системой&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
